package com.akcome.apollo.domain.enums;

/**
 * 币种
 * @author wn
 *
 */
public enum CoinTypeEnum {

	BTC("BTC", "比特币"),
	
	BCH("BCH", "比特币现金");
	
	
	private String code;
	
	private String desc;
	
	private CoinTypeEnum(String code,String desc){
		this.code = code;
		this.desc = desc;
	}
	
	public static CoinTypeEnum getByCode(String code){
		for (CoinTypeEnum enumObj : CoinTypeEnum.values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj;
            }
        }
        return null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
